﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="EWebsite.Admin.Feedback.Detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="border-collapse: collapse; width:100%">
        <tr>
            <td class="style4" colspan="2">
                <strong>Thông tin hợp đồng giao dịch </strong>

                <asp:Label ID="lblID" runat="server" Text="---current id---" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr style="background:#E1E4F2">
            <td colspan="2">
                <h5> Nhà kinh doanh:</h5>
                <span class="lbl"><label>ID: </label>
                <asp:Label ID="lblPartnerID" runat="server"></asp:Label></span>
                <span class="lbl"><label>Tên NKD:</label><asp:Label ID="lblPartnerName" runat="server"></asp:Label></span>
                <span class="lbl"><label>Email: </label><asp:Label ID="lblEmail" runat="server"></asp:Label></span>
                <span class="lbl"><label>Địa chỉ: </label><asp:Label ID="lblAddress" runat="server" Text="Label"></asp:Label></span>
                <span class="lbl"><label>Điện thoại: </label><asp:Label ID="lblTel" runat="server" Text="Label"></asp:Label></span>
                
            </td>
        </tr>
        
        <tr style="background:#E1E4F2;border-top:1px solid">
            <td>
                <h5> Thông tin giao dịch:</h5>
                <span class="lbl"><label>Transacion id: </label><asp:Label ID="lblTransID" runat="server" Text="Label"></asp:Label></span>
                <span class="lbl"><label>Session id: </label> <asp:Label ID="lblSessionID" runat="server" Text="Label"></asp:Label></span>
                <span class="lbl"><label>Ngày đăng ký: </label><asp:Label ID="lblRegisterDay" runat="server" Text="Label"></asp:Label></span>
                <span class="lbl"><label>Số lượng tối thiểu cho 1 lần cập nhật: </label><asp:Label ID="lblMinQuanlity" runat="server" Text="Label"></asp:Label></span>
                <span class="lbl"><label>Ngưỡng cập nhật:</label><asp:Label ID="lblNextTransQuantity" runat="server" Text="Label"></asp:Label></span>
                <span class="lbl"><label>Ngày bắt đầu giao dịch: </label><asp:Label ID="lblBeginTransDate" runat="server" Text="Label"></asp:Label></span>
                <span class="lbl"><label>Ngày kết thúc giao dịch: </label><asp:Label ID="lblEndTransDate" runat="server" Text="Label"></asp:Label></span>
            </td>
            <td>
                <h5>Thông tin sản phẩm</h5>
                <span class="lbl"><label>Mã sản phẩm: </label><asp:Label ID="lblProductID" runat="server" Text="ProductID"></asp:Label></span>
                <span class="lbl"><label>Tên sản phẩm: </label><asp:Label ID="lblProduct" runat="server" Text="Label"></asp:Label></span>
                <span class="lbl"><label>Giá: </label><asp:Label ID="lblPrice" runat="server" Text="Label"></asp:Label></span>
                <span class="lbl"><label>Chiều rộng: </label><asp:Label ID="lblWidth" runat="server" Text="width"></asp:Label> (cm)</span>
                <span class="lbl"><label>Chiều cao: </label><asp:Label ID="lblHeight" runat="server" Text="height"></asp:Label> (cm)</span>
                <span class="lbl"><label>Chiều dài: </label><asp:Label ID="lblLength" runat="server" Text="lenght"></asp:Label> (cm)</span>
                <span class="lbl"><label>Cân nặng: </label><asp:Label ID="lblWeight" runat="server" Text="weight"></asp:Label> (kg)</span>
            </td>
        </tr>        
        
        <tr>
            <td colspan="2">
                <asp:Panel ID="panelPeding" runat="server">
                    <asp:Button ID="btnCancel" runat="server" Text="Hủy giao dịch" 
                    onclick="btnCancel_Click" Height="30px" />
                    &nbsp;<asp:Button ID="btnAccept" runat="server" onclick="btnAccept_Click" 
                        Text="Chấp nhận giao dịch" Height="30px" />
                </asp:Panel>
            </td>
        </tr>        
        </table>
        <asp:Panel ID="panel2" runat="server">            
            <div style="width:100%;float:left">
                    <h3 class="act">Cập nhật kho hàng</h3>
                    <div style="width:490px;float:left;padding-left:10px">
                        <span class="lbl"><label>Từ TP: <asp:DropDownList ID="drpFromCity" runat="server" Width="284px">
                                        </asp:DropDownList></label></span>
                        <span class="lbl"><label>Tới TP: <asp:DropDownList ID="drpToCity" runat="server" Width="281px">
                                        </asp:DropDownList></label></span>
                        <span class="lbl"><label>Hình thức vận chuyển: </label><asp:DropDownList ID="drpTransportType" runat="server">
                                                                    <asp:ListItem Value="0">Bình thường</asp:ListItem>
                                                                    <asp:ListItem Value="1">Vận chuyển bằng máy bay</asp:ListItem>
                                                                </asp:DropDownList></span>
                        
                        <span class="lbl">
                        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                                    Text="b1. Kiểm tra số lượng cập nhật" Width="192px"/><asp:Label ID="lblInventory" runat="server">............................</asp:Label> (sp)</span>
                        <!--<asp:Panel ID="panelB2" runat="server"> -->
                            <span class="lbl">
                            <asp:Button ID="btnCalPrice" runat="server" onclick="btnCalPrice_Click" 
                                                    Text="b2. Tính giá vận chuyển" Width="193px" />
                                                <asp:Label ID="lblTransPrice" runat="server">............................</asp:Label> (usd)</span>
                            <span class="lbl"><asp:Button ID="Button2" runat="server" 
                                onclick="Button2_Click" Text="b3. Đặt hàng vận chuyển" Width="153px" /></span>
                            <asp:Label ID="lblLink" runat="server"></asp:Label>
                            
                        <!--</asp:Panel><!-- #step 2, 3 -->

                        <!--<asp:Panel ID="panelB4" runat="server"> -->
                            <span class="lbl">
                            <asp:Button ID="btnUpdate" runat="server" onclick="btnUpdate_Click" 
                                    Text="b4. Cập nhật kho hàng" CssClass="textcenter" Width="149px" /></span>
                        <!--</asp:Panel><!-- #step 4 -->
                        
                        <!--<asp:Panel ID="panelB5" runat="server"> -->
                            <span class="lbl">
                            <asp:Button ID="btnTranferMoney" runat="server" 
                                onclick="btnTranferMoney_Click" 
                                Text="b5. Thanh toán tiền cho NVC" Width="276px" /></span>
                       <!-- </asp:Panel><!-- #step 5 -->
                        
                    </div><!--left-->
                    <div style="width:420px;float:left;padding: 0 0 0 30px">
                        <span class="lbl"><label>Ngày trễ nhất bắt đầu vận chuyển</label></span>
                        <asp:Calendar ID="Calendar1" runat="server" Width="350px" BackColor="White" 
                            BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" 
                            ForeColor="Black" Height="190px" NextPrevFormat="FullMonth">
                                <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
                                <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                                    VerticalAlign="Bottom" />
                                <OtherMonthDayStyle ForeColor="#999999" />
                                <SelectedDayStyle BackColor="#333399" ForeColor="White" />
                                <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" 
                                    Font-Bold="True" Font-Size="12pt" ForeColor="#333399" />
                                <TodayDayStyle BackColor="#CCCCCC" />
                                </asp:Calendar>
                    </div><!--right-->
                
            </div><!-- update ventory -->
        </asp:Panel><!-- panel 2-->
        <div style="width:100%;float:left;margin-top:20px">
            <h4 style="color:Blue">Lịch sử giao dịch</h4>
            <asp:GridView ID="grvHistory" runat="server" 
            AutoGenerateColumns="False" EnableModelValidation="True" Width="100%" 
                CellPadding="4" ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="Thông tin vận chuyển">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# bindCarrierInfo("CarrierInfo") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" 
                            Text='<%# bindCarrierInfo(Eval("CarrierInfo").ToString()) %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="400px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Hình thức vận chuyển">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("TransportType") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" 
                            Text='<%# bindTransportType(Eval("TransportType").ToString()) %>'></asp:Label>                        
                        <span class="lbl">Số lượng cập nhật: <asp:Label ID="Label4" runat="server" Text='<%# Eval("AddedQuantity") %>'></asp:Label></span>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ngày đăng ký">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("AddedDate") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("AddedDate") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
    </div>
    </asp:Content>
